home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / trojka.tgz / trojka.tar / trojka / Makefile < prev    next >
Makefile  |  1995-10-20  |  924b  |  56 lines

  1. #
  2. # @(#) Makefile for TROJKA 
  3. # created:    13.iii.1992
  4. # modified:    26.iv.1992 for xenix/68000 and HPUX
  5. #        20.x.1995 for Linux support
  6. #
  7.  
  8.  
  9.  
  10. OBJS= trojka.o screen.o scan.o hiscore.o system.o
  11.  
  12. make:
  13.     @echo please specify: hpux, xenix68, linux or sunos
  14.  
  15. install:
  16.     cp trojka /usr/games
  17.  
  18. clean:
  19.     rm -f $(PROGS) *.o core a.out trojka.scores
  20.  
  21. trojka: $(OBJS)
  22. #    $(CC) $(CFLAGS) $(OBJS) -lcurses -ltermlib -o trojka
  23.     $(CC) $(CFLAGS) $(OBJS) -lcurses -o trojka
  24.  
  25.  
  26. # patch for HP-UX, need 'codelibs'
  27. trojka_ux:   $(OBJS)
  28.     $(CC) -DHPUX $(OBJS) -lcurses -ltermlib -lcodelibs -o trojka
  29.  
  30. #
  31. # dependencies
  32. #
  33.  
  34. trojka.o: trojka.h sys_custom.h
  35. hiscore.o: hiscore.h sys_custom.h
  36. screen.o: hiscore.h screen.h trojka.h sys_custom.h
  37. scan.o: trojka.h
  38. system.o: trojka.h
  39.  
  40. #
  41. # several systems
  42. #
  43.  
  44.  
  45. xenix68:
  46.     make trojka "CFLAGS=-DXENIX68"
  47.  
  48. sunos:
  49.     make trojka "CFLAGS=-DSUNOS"
  50.  
  51. hpux:    
  52.     make trojka_ux "CFLAGS=-DHPUX"
  53.  
  54. linux:
  55.     make trojka "CFLAGS=-DLINUX"
  56.